package com.xj.common.bussiness.news.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.xj.common.bussiness.news.entity.NewNews;
import com.xj.common.bussiness.news.entity.OneAndNext;
import com.xj.common.bussiness.news.entity.TbNews;

/**
 * <p>
  * 栏目管理 Mapper 接口
 * </p>
 *
 * @author xj
 * @since 2017-11-30
 */
public interface TbNewsMapper extends BaseMapper<TbNews> {
	
	/*List<TbNews> selectListByType(@Param("typeId")String typeId);
	
	List<TbNews> selectNameAndConverImgListByType(@Param("typeId")String typeId);*/
	

	List<TbNews> idsList(@Param("typeId")Integer typeId);
	
	OneAndNext oneAndNexts(@Param("id")Integer id);
	
	List<TbNews> slideList(@Param("typeId")Integer typeId,@Param("id")Integer id);
	
	//NewNews getContent(@Param("id")Integer id);
	
	Integer lastId(@Param("id")Integer id);
	
	Integer nextId(@Param("id")Integer id);
	
	

}